package com.asia5b.a5mall.member.adapter

import com.asia5b.a5mall.member.R
import com.asia5b.a5mall.member.databinding.ItemAddresslistAdapterBinding
import com.asia5b.a5mall.middleware.model.member.AddressModel
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder

/**
 * Created by zhangyuncai on 2020/1/8.
 */
class AddressListAdapter(list: ArrayList<AddressModel>) :
        BaseQuickAdapter<AddressModel, BaseDataBindingHolder<ItemAddresslistAdapterBinding>>(R.layout.item_addresslist_adapter, list) {
    override fun convert(helper: BaseDataBindingHolder<ItemAddresslistAdapterBinding>, item: AddressModel) {
        val binding = helper.dataBinding!!
        binding.model = item
    }
}